/**
 * 
 */
package com.celephais.common.client.ui;

import com.google.gwt.user.client.ui.DialogBox;

/**
 * @author Eugene Shen
 * This interface is used by dialogs to signal back when the dialog has been
 * closed.
 */
public interface ModalDialogCallback {
	
	/**
	 * A dialog box calls this method when its "OK" button is clicked and
	 * it has hidden itself.
	 * @param caller The dialog box that was confirmed.
	 */
	public void onDialogConfirm(DialogBox caller);
	
	/**
	 * A dialog box calls this method when its "Cancel" button is clicked
	 * and it has hidden itself.
	 * @param caller The dialog box that was canceled.
	 */
	public void onDialogCancel(DialogBox caller);
}
